<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width,initial-scale=1,maximum-scale=1.0" />
    <title>详情商品表</title>
    <#include "/view/admin/head.html"/>





    <style type="text/css">
        .list-path {
            height: 50px;
            line-height: 50px;
            background-color: #9acfea;
        }

        .table-class {
            width: 90%;
            text-align: center;
            border: 1px solid #afd9ee;
            margin: 0 auto;
            margin-top: 50px;
        }

        table th {
            width: 20%;
            background-color: #d9edf7;
            text-align: right;
        }

        table td {
            width: 20%;
            text-align: left;
        }


    </style>
    <script type="text/javascript">

        $(function(){



        });

    </script>
</head>
<body>

<#include "/view/admin/listnav.html"/>


<div class="table-class">
    <#include "/view/admin/opermsg.html"/>
    <table class="table table-bordered">

        <input type="hidden" style="display: none" name="id" value="${entity.id!}"/>



        <tr>
            <th>商家</th>
            <td>
                <#if entity.businessId??>
                    <#list listBusinessId as lv>
                        <#if lv.value??&&entity.businessId == lv.value >
                            ${lv.name!}
                        </#if>
                    </#list>

                </#if>
            </td>




            <th>商品名称</th>
            <td>
                ${entity.commodityName!}
            </td>
        </tr>


        <tr>
            <th>商品类型</th>
            <td>
                <#if entity.typeId??>
                    <#list listTypeId as lv>
                        <#if lv.value??&&entity.typeId == lv.value >
                            ${lv.name!}
                        </#if>
                    </#list>

                </#if>
            </td>




            <th>现价(元)</th>
            <td>
                ${entity.presentPrice!}
            </td>
        </tr>


        <tr>
            <th>原价(元)</th>
            <td>
                ${entity.originalPrice!}
            </td>

            <th>内容</th>
            <td>
                ${entity.content!}
            </td>

        </tr>



        <tr>
            <th>商品图片</th>
            <td colspan="3">

                <#list pic1 as p1>
                    <img alt="" src="${base}${p1.imagePath!}" width="150px" height="150px"/>
                </#list>


            </td>

        </tr>
        <tr>
            <th>商品默认图</th>
            <td colspan="3">

                <#list pic2 as p2>
                    <img alt="" src="${base}${p2.imagePath!}" width="150px" height="150px"/>
                </#list>


            </td>

        </tr>
        <tr>
            <th>商品文字描述图片</th>
            <td colspan="3">

                <#list pic3 as p3>

                    <img alt="" src="${base}${p3.imagePath!}" width="150px" height="150px"/>
                </#list>


            </td>

        </tr>
        <tr><td colspan="4"><hr/></td> </tr>
        <#list czjspecification as c>
            <tr>
                <th>规格参数名称</th>
                <td>${c.name!}
                </td>

                <th>规格参数内容</th>
                <td>${c.value!}
                </td>

            </tr></#list>


        <tr><td colspan="4"><hr/></td> </tr>
        <#list czjaftersales as c>
            <tr>
                <th>售后服务名称</th>
                <td>${c.name!}
                </td>

                <th>售后服务内容</th>
                <td>${c.value!}
                </td>
            </tr>
        </#list>

        <tr>
            <td colspan="4" width="100%" style="text-align: center;">
                <a class="btn btn-danger " href="${base}/czjcommodity/list.do">
                    </span>返回</a>
            </td>
        </tr>

    </table>
    </form>




</div>

<script type="text/javascript">

</script>


</body>
</html>
